package com.kgc.scd.vo;

/*
<<<<<<< HEAD
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

*/
/**
 * Created On : 2022/11/15 0015.
 * <p>
 * Author : shiguangchuan
 * <p>
 * Description: ShopGoods
 *//*

@Data
@ApiModel(value = "商品详情VO",description = "视图层领域模型数据对象，用于前端显示")
public class ShopGoodsVO {

    // 商品id
    @ApiModelProperty(value = "商品id")
    private String id;

    // 商品类型id
    @ApiModelProperty(value = "商品类型id")
    private String categoryId;

    // 商品名称
    @ApiModelProperty(value = "商品名称")
    private String name;

    // 商品数量
    @ApiModelProperty(value = "商品数量")
    private String goodsNumber;

    // 商品价格
    @ApiModelProperty(value = "商品价格")
    private Double RetailPrice;

    // 商品图片
    @ApiModelProperty(value = "商品图片")
    private String PrimaryPicUrl;

}
=======
*/
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Created On : 2022/11/14.
 * <p>
 * Author : 22166
 * <p>
 * Description: 商品类-视图实体
 */
@Data
@ApiModel(value = "商品详情VO",description = "视图层领域模型数据对象，用于前端显示")
public class ShopGoodsVO {

    /**
     * 商品编号
     */
    @ApiModelProperty(value = "商品id")
    private String id;

    /**
     * 商品分类
     */
    @ApiModelProperty(value = "商品分类id")
    private String categoryId;

    /**
     * 商品名称
     */
    @ApiModelProperty(value = "商品名称")
    private String name;

    /**
     * 商品库存
     */
    @ApiModelProperty(value = "商品库存")
    private String goodsNumber;

    /**
     * 商品简介
     */
    @ApiModelProperty(value = "商品简介")
    private String goodsBrief;

    /**
     * 打折
     */
    @ApiModelProperty(value = "商品打折")
    private Integer isOnSale;

    /**
     * 专柜价格
     */
    @ApiModelProperty(value = "商品打折价格")
    private Double salePrice;

    /**
     * 附加价格
     */
    //@ApiModelProperty(value = "商品附加价格")
    //private Double extraPrice;

    /**
     * 商品主图
     */
    @ApiModelProperty(value = "商品主图")
    private String primaryPicUrl;

    /**
     * 商品列表图
     */
    @ApiModelProperty(value = "商品列表图")
    private String listPicUrl;

    /**
     * 零售价格
     */
    @ApiModelProperty(value = "商品零售价格")
    private Double retailPrice;

    /**
     * 销售数量
     */
    @ApiModelProperty(value = "商品销售数量")
    private Integer sellVolume;

    /**
     *
     */
    @ApiModelProperty(value = "商品生产者id")
    private Integer primaryProductId;

    /**
     * 单价
     */
    //@ApiModelProperty(value = "商品单价")
    //private Double unitPrice;

    /**
     * 限购
     */
    @ApiModelProperty(value = "商品限购")
    private Integer isLimited;

    /**
     * 热销
     */
    @ApiModelProperty(value = "商品热销")
    private Integer isHot;

    /**
     * 是否售空
     */
    @ApiModelProperty(value = "商品是否售空")
    private String isSoldout;

    /**
     * 是否为抢购商品
     */
    private boolean isBush;

    /**
     * 购物车是否勾选
     */
    /*@ApiModelProperty(value = "0代表未勾选，1代表已勾选")
    private Integer needed;*/

    /**
     * 抢购开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "抢购开始时间")
    private Date bushStartTime;

}
